-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from JerboaBurrow/lib
turn into a .a lib
- Loading branch information
Showing
9 changed files
with
74 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(Particles) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
file(GLOB_RECURSE SRC | ||
"*.cpp" | ||
) | ||
|
||
if (WINDOWS) | ||
if (RELEASE) | ||
# launch as windows, not console app - so cmd does not open as well | ||
add_link_options(-mwindows) | ||
endif () | ||
else() | ||
# so nautilus etc recognise target as executable rather than .so | ||
add_link_options(-no-pie) | ||
endif() | ||
|
||
include_directories(.) | ||
|
||
add_executable(Particles ${SRC}) | ||
|
||
target_link_libraries(Particles jGL) | ||
|
||
set_target_properties(Particles PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/Examples/Particles") | ||
|
||
file(COPY resource DESTINATION "${CMAKE_BINARY_DIR}/Examples/Particles/") |
File renamed without changes.
File renamed without changes.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.