summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorjussi2023-05-15 14:18:58 +0300
committerjussi2023-05-15 14:18:58 +0300
commit870e3a46a6fcdbd5b264406984d232874f138ea3 (patch)
tree3ce5e740a6133634906b2231b135123c54680fa7 /CMakeLists.txt
parentb387742850a4d2d6b750f7cdc878ff00d7e4a5fb (diff)
downloadreilua-enhanced-870e3a46a6fcdbd5b264406984d232874f138ea3.tar.gz
reilua-enhanced-870e3a46a6fcdbd5b264406984d232874f138ea3.tar.bz2
reilua-enhanced-870e3a46a6fcdbd5b264406984d232874f138ea3.zip
More rlgl General render state functions. Fixed rlgl function prefix to rl.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4d2e985..90987a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,7 @@ if( EMSCRIPTEN ) # Web
target_link_libraries( ${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/lib/web/libraylib.a )
target_link_libraries( ${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/lib/web/liblua.a )
+ # Try "-s USE_PTHREADS" if not getting pixel perfect rendering.
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s USE_GLFW=3 -s ASSERTIONS=1 -s WASM=1 -s ASYNCIFY" )
set( CMAKE_EXECUTABLE_SUFFIX ".html" ) # This line is used to set your executable to build with the emscripten html template so that you can directly open it.
set( resources_dir "resources" )
@@ -44,7 +45,8 @@ else() # Desktop
if( DRM ) # Mainly for Raspberry Pi
# target_link_libraries( ${PROJECT_NAME} GLESv2 EGL drm gbm rt bcm_host m dl pthread )
- target_link_libraries( ${PROJECT_NAME} GLESv2 EGL drm gbm rt m dl pthread )
+ # target_link_libraries( ${PROJECT_NAME} GLESv2 EGL drm gbm pthread rt m dl )
+ target_link_libraries( ${PROJECT_NAME} raylib GLESv2 EGL pthread rt m gbm drm dl atomic )
else()
target_link_libraries( ${PROJECT_NAME} m dl pthread )
endif()