File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ include(${CMAKE_SOURCE_DIR}/scripts/cmake/hackerrank_challenge.cmake)
17
17
compiler_check()
18
18
19
19
if (USE_CONAN_LIBS)
20
- include (${CMAKE_BINARY_DIR} /conanbuildinfo.cmake)
21
- conan_custom_setup()
20
+ include (${CMAKE_BINARY_DIR} /conanbuildinfo.cmake)
21
+ conan_custom_setup()
22
22
else ()
23
23
find_package (PkgConfig REQUIRED)
24
24
pkg_check_modules(JsonCpp REQUIRED jsoncpp>=1.9.4)
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ macro(hackerrank_setup_project)
13
13
set_target_properties (${ProjectId} PROPERTIES FOLDER "${ProjectFolder} " )
14
14
15
15
if (USE_CONAN_LIBS)
16
- target_link_libraries (${ProjectId} ${CONAN_LIBS} )
16
+ target_link_libraries (${ProjectId} ${CONAN_LIBS} m )
17
17
else ()
18
- include_directories (${Boost_INCLUDE_DIRS} ${JsonCpp_INCLUDE_DIRS} )
19
- target_link_libraries (${ProjectId} ${Boost_LIBRARIES} ${JsonCpp_LIBRARIES} )
20
- endif (USE_CONAN_LIBS)
18
+ include_directories (${Boost_INCLUDE_DIRS} ${JsonCpp_INCLUDE_DIRS} )
19
+ target_link_libraries (${ProjectId} ${Boost_LIBRARIES} ${JsonCpp_LIBRARIES} m )
20
+ endif (USE_CONAN_LIBS)
21
21
endmacro ()
22
22
23
23
macro (hackerrank_challenge_solution)
@@ -41,11 +41,11 @@ macro(hackerrank_challenge_test)
41
41
target_link_libraries (${ProjectTest} ${ProjectId} ${TestBaseProject} ${CONAN_LIBS} )
42
42
else ()
43
43
# GTest
44
- find_package (GTest REQUIRED)
45
- include_directories (${GTEST_INCLUDE_DIRS} )
44
+ find_package (GTest REQUIRED)
45
+ include_directories (${GTEST_INCLUDE_DIRS} )
46
46
47
- target_link_libraries (${ProjectTest} ${ProjectId} ${TestBaseProject} ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread)
48
- endif (USE_CONAN_LIBS)
47
+ target_link_libraries (${ProjectTest} ${ProjectId} ${TestBaseProject} ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread)
48
+ endif (USE_CONAN_LIBS)
49
49
50
50
set_property (TARGET ${ProjectTest} PROPERTY CXX_STANDARD 14)
51
51
set_property (TARGET ${ProjectTest} PROPERTY CXX_STANDARD_REQUIRED ON )
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ function write_header_file {
66
66
done
67
67
68
68
echo -ne " #ifndef ${problem_name^^} _H
69
- #define ${problem_name^^} _H
69
+ #define ${problem_name^^} _H
70
70
71
71
namespace hackerrank {
72
72
namespace bmgandre {${ns_begin}
You can’t perform that action at this time.
0 commit comments