|
Revision 685, 487 bytes
(checked in by tapted, 2 years ago)
|
|
Convert Regex from Config to Module
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.4) |
|---|
| 2 | project(threadman) |
|---|
| 3 | |
|---|
| 4 | ENABLE_TESTING() |
|---|
| 5 | add_subdirectory(tests) |
|---|
| 6 | |
|---|
| 7 | FIND_PACKAGE(SDL) |
|---|
| 8 | |
|---|
| 9 | INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR}) |
|---|
| 10 | |
|---|
| 11 | add_library(threadman SHARED threadman.h threadman.cpp) |
|---|
| 12 | target_link_libraries(threadman ${SDL_LIBRARY}) |
|---|
| 13 | SET_TARGET_PROPERTIES(threadman PROPERTIES LINK_FLAGS -Wl,-no-undefined) |
|---|
| 14 | |
|---|
| 15 | INSTALL(FILES semwaiter.h threadman.h DESTINATION include) |
|---|
| 16 | INSTALL(TARGETS threadman |
|---|
| 17 | LIBRARY DESTINATION lib |
|---|
| 18 | RUNTIME DESTINATION bin) |
|---|