forked from misakamm/xege
-
Notifications
You must be signed in to change notification settings - Fork 50
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 #27 from chirsz-ever/improve-cmake-0629
改进编译系统
- Loading branch information
Showing
5 changed files
with
91 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
*.VC.db | ||
*.user | ||
*.o | ||
/build | ||
.idea/ | ||
*-build-* | ||
|
||
/build | ||
/temp |
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,15 @@ | ||
|
||
file( | ||
GLOB DEMO_SRCS | ||
LIST_DIRECTORIES false | ||
${PROJECT_SOURCE_DIR}/demo/*.cpp | ||
) | ||
|
||
foreach (DEMO_SRC ${DEMO_SRCS}) | ||
get_filename_component(DEMO_NAME ${DEMO_SRC} NAME_WE) | ||
add_executable(${DEMO_NAME} ${DEMO_SRC}) | ||
target_link_libraries(${DEMO_NAME} ${LIB_NAME}) | ||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||
target_link_libraries(${DEMO_NAME} -mwindows) | ||
endif () | ||
endforeach () |
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