mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 08:41:02 +08:00
custom core library name (for cross-platform build, like easy_profiler_eabihf), ex: "cmake -DLIB_NAME=easy_profiler_x64 ../easy_profiler_core"
This commit is contained in:
parent
4db9c82729
commit
63e036f11a
@ -1,5 +1,9 @@
|
||||
project(easy_profiler)
|
||||
|
||||
IF (NOT DEFINED LIB_NAME)
|
||||
SET(LIB_NAME ${PROJECT_NAME})
|
||||
ENDIF()
|
||||
|
||||
set(CPP_FILES
|
||||
block.cpp
|
||||
profile_manager.cpp
|
||||
@ -85,10 +89,10 @@ if(WIN32)
|
||||
)
|
||||
endif(WIN32)
|
||||
|
||||
add_library(${PROJECT_NAME} SHARED ${SOURCES} resources.rc)
|
||||
add_library(${LIB_NAME} SHARED ${SOURCES} resources.rc)
|
||||
|
||||
if(UNIX)
|
||||
set(PLATFORM_LIBS pthread)
|
||||
endif(UNIX)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} ${PLATFORM_LIBS})
|
||||
target_link_libraries(${LIB_NAME} ${PLATFORM_LIBS})
|
||||
|
Loading…
x
Reference in New Issue
Block a user