-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfe6f2b
commit c90b178
Showing
1 changed file
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
cmake_minimum_required(VERSION 3.12) | ||
project(eth_booster VERSION 0.1.0 LANGUAGES CXX) | ||
|
||
set(BUILD_SHARED_LIBS false) | ||
#add_definitions("--std=c++14") | ||
|
||
if(WIN32) | ||
set(_PS "win") | ||
elseif(UNIX) | ||
set(_PS "linux") | ||
endif(WIN32) | ||
|
||
|
||
message(STATUS ${MY_INCLUDES}) | ||
|
||
if(WIN32) | ||
add_library(eth | ||
win/exceptions.cpp | ||
win/iocp.cpp | ||
win/socket.cpp | ||
win/timestamp.cpp | ||
) | ||
elseif(UNIX) | ||
add_library(eth | ||
linux/timestamp.cpp | ||
linux/utils.cpp | ||
) | ||
endif(WIN32) | ||
|
||
target_include_directories(eth PUBLIC . ${_PS}) | ||
add_executable(test_timestamp tests/test_timestamp.cpp) | ||
target_include_directories( | ||
test_timestamp PUBLIC | ||
${eth_booster_SOURCE_DIR} | ||
${eth_booster_SOURCE_DIR}/${_PS} | ||
) | ||
target_link_libraries(test_timestamp eth) | ||
|
||
# ${CMAKE_CURRENT_SOURCE_DIR} |